import Vue from 'vue'
import Router from 'vue-router'
import live from '../views/live.vue'
import login from '../views/login/login.vue'

import signIn from '../views/login/sign-in.vue'
import signUp from '../views/login/sign-up.vue'

Vue.use(Router)

export default new Router({
  // mode:'history',
  routes: [
    {
      path: '/',
      name: 'live',
      component: live
    },
    {
      path: '/login/',
      name: 'login',
      component: login,
      children: [
        {
          name: 'sign-in',
          path: 'sign-in',
          component: signIn
        },
        {
          name: 'sign-up',
          path: 'sign-up',
          component: signUp
        },
        {
          name: 'reset-pwd',
          path: 'reset-pwd',
          component: signUp
        }
      ]
    }
  ]
})
